#ifndef _LED_H
#define _LED_H

#define SIZE_8 8
#define SIZE_4 4
#define CRU_CLKGATE_CON31 	0xFF76037c  //寄存器的地址
#define GRF_GPIO2A_IOMUX 	0xFF77e000
#define GPIO2_SWPORTA_DDR 	0xFF780004
#define GPIO2_SWPORTA_DR 	0xFF780000


//自定义每个led引脚的类型										
struct rk_gpio_led {
	int gpio;   //引脚号
	char *desc; //引脚描述
};

//自定义平台数据类型
struct leds_platform_data {
	struct rk_gpio_led *leds; //引用多个led引脚对象
	int nleds; //引脚数量

};

#endif

